<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	<form class="form-horizontal business-form" id="credit-infog">
		<div class="business-manwife" style="border-bottom: none;">拖车失败登记</div>
		<div class="current-state-bno">
			<div class="submit-buttonleft">
				<button class="btn-danger-my btn  btn-success" type="button" onclick="tcdjCreate();">新增</button>
			</div>
		</div>

		<div class="ibox-content" style="clear: none;">
			<div class="jqGrid_wrapper">
				<table id="table_list_8"></table>
				<div id="pager_list_8"></div>
			</div>
		</div>

		<div class="business-manwife">拖车成功信息</div>
		<div class="business-padding">
			<table cellpadding="0" cellspacing="0" border="0" class="infor-table">

				<tr>
					<td align="right"><label class="control-label np">拖回日期：</label>
					</td>
					<td>
						<div class="control-div np" id="th_timeSuccess"></div>
					</td>
					<td align="right"><label class="control-label np">车钥匙：</label>
					</td>
					<td>
						<div class="control-div np" id="keyCar"></div>
					</td>
				</tr>

				<tr>	
					<td align="right"><label class="control-label np">拖回地：</label>
					</td>
					<td colspan="6">
						<div class="control-div np" id="addrParkSucces"></div>
					</td>
				</tr>

				<tr>
					<td align="right"><label class="control-label np">执行组别：</label>
					</td>
					<td>
						<div class="control-div np" id="executor1"></div>
						<select id="executor" style="display: none;"></select>
					</td>	
					<td align="right"><label class="control-label np">行驶证：</label>
					</td>
					<td>
						<div class="control-div np" id="statusDrivingLicense"></div>
					</td>
					<td align="right"><label class="control-label np">购置税：</label>
					</td>
					<td>
						<div class="control-div np" id="statusPurchaseTax"></div>
					</td>
				</tr>

				<tr>
					<td align="right"><label class="control-label np">登记证书：</label>
					</td>
					<td>
						<div class="control-div np" id="statusCertificateRegistration"></div>
					</td>

					<td align="right"><label class="control-label np">购车发票：</label>
					</td>
					<td>
						<div class="control-div np" id="statusBill"></div>	
					</td>
					<td align="right"><label class="control-label np">欠养路费：</label>
					</td>
					<td>
						<div class="control-div np" id="statusOwe"></div>	
					</td>
				</tr>

				<tr>
					<td align="right"><label class="control-label np">违章：</label>
					</td>
					<td>
						<div class="control-div np" id="statusBreak"></div>	
					</td>	
				</tr>

				<tr>
					<td align="right">
						<label class="control-label np">车况备注：</label></td>
					<td colspan="4">
							<div class="control-div np" id="remarkCar"></div>	
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">养路费备注：</label></td>
					<td colspan="4">
						<div class="control-div np" id="remarkToll"></div>	
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">违章备注：</label></td>
					<td colspan="4">
						<div class="control-div np" id="remarkBreak"></div>	
						</td>
				</tr>

				<tr>
					<td align="right">
						<label class="control-label np">综合备注：</label></td>
					<td colspan="4">
							<div class="control-div np" id="remarkTotal"></div>	
						</td>
				</tr>

				<tr>
					<td align="right">
						<label class="control-label np">车辆其他物品：</label></td>
					<td colspan="4">
							<div class="control-div np" id="goodsOther"></div>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">车辆其他资料：</label></td>
					<td colspan="4">
							<div class="control-div np" id="dataOther"></div>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">备注：</label></td>
					<td colspan="4">
						<div class="control-div np" id="remarks"></div>
						</td>
				</tr>
				
				<tr>
					<td align="right">
						<label class="control-label np">发动机号：</label></td>
					<td>
						<div class="control-div np" id="engineNumber"></div>
					</td>
					<td align="right">
						<label class="control-label np">底盘号：</label></td>
					<td>
						<div class="control-div np" id="chassisNumber"></div>
					</td>
				</tr>
				
				<tr>
					<td align="right">
						<label class="control-label np">公里数：</label></td>
					<td>
						<div class="control-div np" id="tcmileage"></div>
					</td>
					<td align="right">
						<label class="control-label np">拖车费用：</label></td>
					<td>
						<div class="control-div np" id="costTrailer"></div>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="control-label np">车辆维修费：</label></td>
					<td>
						<div class="control-div np" id="costMaintenance"></div>
					</td>
					<td align="right">
						<label class="control-label np">其他费用：</label></td>
					<td>
						<div class="control-div np" id="costOther"></div>
					</td>
				</tr>
			</table>
		</div>
		<div class="business-manwife">经办信息</div>
		<div class="padding-nono">
			<table cellpadding="0" cellspacing="0" border="0"
				class="buyinfor-table">
				<tr>
					<td align="right"><label class="control-label np">经办人：</label>
					</td>
					<td><input class="form-control"
						readonly="readonly" type="text" id="tcjx_operator"
						name="" value="${current_user_key.uname}"></td>
					<td align="right"><label class="control-label np">经办时间：</label>
					</td>
					<td><input id="tcjx_operatorTime"
						readonly="readonly" name="" placeholder="经办时间"
						class="form-control" />
					</td>
				</tr>
			</table>

		</div>
	</form>
	
	<%@include file="/jsp/comm_js_include.jsp"%>
	<script type="text/javascript">
    var gettcsbData=function(){
    	var winWidthtc = $("#table_list_8").parent('div.ibox-content').width();
        var winHeightc = document.body.offsetHeight - 450;
  	    var win = winWidth / 7 ;
 	    $.jgrid.defaults.styleUI = 'Bootstrap';
 	    var data={};
 	    data.statusTrailer=30;
 	    data.busiId=$.getUrlData("busiId");
 	    data.orderSql="created desc";
		$("#table_list_8").jqGrid({
			show:false,
			url:'${basePath}/DhOverdueTrailerRecordController/list',
	       	datatype : "json",
	       	postData:data,
		    colNames : ['拖车编号','拖车时间','拖车地', '备注','经办人'],
		    colModel : [ 
	             {name: 'replaceId',index: 'id',hidden:true},
	             {name: 'timeTrailer',index: 'timeTrailer',width: win,align: "center",sorttype: "float",formatter:function(a,b,c){
                   	 return formateStringDate(a);
                 }},
	             {name: 'addrPark',index: 'addrPark',width: win,align: "center",sorttype: "float"},
	             {name: 'remarkApply',index: 'remarkApply',width: win,align: "center",sorttype: "float"},
	             {name: 'creatorName',index: 'creatorName',width: win,align: "center",sorttype: "float"}
	             ],
	           mtype : "post",
	           height: 200,
	           width:winWidthtc,  
	           autowidth: false,
	           shrinkToFit: false,
	           rowNum: 15,
	           rowList: [15, 30, 45],
	           viewrecords: true,
	           pager: "#pager_list_8",
	           hidegrid: false,
	           multiselect : false,	
	           altRows:true,
	           altclass:'someClass',
	           multiboxonly:false,  
	           beforeSelectRow: false,
	           onSelectRow:function(id){
            	  lastSel6=id;
               },
	           jsonReader: {
	                root: "result.rows",
	                page: "result.page",
	                total: "result.total",
	                records: "result.records",
	                repeatitems: false,
	                id: "replaceId"
	            },
	            loadComplete:function(datas){
	          	  if (datas.flag == "100100") {
	                   // layer.msg("查询成功!", {icon: 6, time: 1000});
	                    return;
	                }
	          	  if(datas.flag == '100802') {
	  				  top.location.href = thisLoginUrl;
	  				  return;
	  			  }

	          	  layer.msg(datas.message, {icon: 2});
	            }
	      });
 	}
    
    var showtccgData=function(){
    	var data={};
    	data.busiId=$.getUrlData("busiId");
    	data.statusTrailer=20;
    	data.orderSql="created desc";
		$.dpAjax({
			show:false,
			url:'${basePath}/DhOverdueTrailerRecordController/list',
			data:data,
			success: function(datas){
					if(datas.result.rows.length>0){
						var data=datas.result.rows[0];
    					$("#th_timeSuccess").text(data.timeTrailer);
    					$("#addrParkSucces").text(data.addrPark);
    					$("#keyCar").text(data.keyCar);
    					$("#executor").val(data.executor);
	    				var executor1 = $("#executor").find("option:selected").text();
	    				$("#executor1").text(executor1);
    					$("#statusDrivingLicense").text(data.statusDrivingLicense=="0"?"无":"有");
    					$("#statusPurchaseTax").text(data.statusPurchaseTax=="0"?"无":"有");
    					$("#statusCertificateRegistration").text(data.statusCertificateRegistration=="0"?"无":"有");
    					$("#statusBill").text(data.statusBill=="0"?"无":"有");
    					$("#statusPurchaseTax").text(data.statusPurchaseTax=="0"?"无":"有");
    					$("#statusBreak").text(data.statusBreak=="0"?"无":"有");
    					$("#statusOwe").text(data.statusOwe=="0"?"无":"有");
    					$("#remarkCar").text(data.remarkCar);
    					$("#remarkToll").text(data.remarkToll);
    					$("#remarkBreak").text(data.remarkBreak);
    					$("#remarkTotal").text(data.remarkTotal);
    					$("#goodsOther").text(data.goodsOther);
    					$("#dataOther").text(data.dataOther);
    					$("#remarks").text(data.remarks);
    					$("#engineNumber").text(data.engineNumber);
    					$("#chassisNumber").text(data.chassisNumber);
    					$("#tcmileage").text(data.mileage);
    					$("#costTrailer").text(data.costTrailer);
    					$("#costMaintenance").data(data.costMaintenance);
    					$("#costOther").text(data.costOther);
    					$("#tcjx_operator").val(data.creatorName);
    					$("#tcjx_operatorTime").val(data.jbDate);
						return;
					}
            }
    	});
 	}
	</script>